package com.ts.api.module.product.service.impl;


import com.ts.api.module.product.dao.ProductPlanFilterChannelDao;
import com.ts.api.module.product.entity.po.ProductPlanFilterChannelPO;
import com.ts.api.module.product.service.ProductPlanFilterChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ProductPlanFilterChannelServiceImpl implements ProductPlanFilterChannelService {

    @Autowired
    private ProductPlanFilterChannelDao productPlanFilterChannelDao;

    @Override
    @Transactional(readOnly = true)
    public List<ProductPlanFilterChannelPO> list(Long loanProductPlanId) {
        return productPlanFilterChannelDao.list(loanProductPlanId);
    }

    @Override
    @Transactional(readOnly = true)
    public ProductPlanFilterChannelPO get(Long loanProductId, Long loanProductPlanId, Long loanChannelId) {
        return productPlanFilterChannelDao.get(loanProductId, loanProductPlanId, loanChannelId);
    }
}
